package com.oilsection.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oilsection.demo.po.Jz;

public interface JzMapper extends BaseMapper<Jz> {
    default void updateLocation(String jzId, String jkXpoint, String jkYpoint) {
        update(new LambdaUpdateWrapper<Jz>().eq(Jz::getId, jzId).set(Jz::getJkXpoint, jkXpoint).set(Jz::getJkYpoint, jkYpoint));
    }
}
